package com.example.design.利用注解加反射消除重复代码.优化.bean;

import com.example.design.利用注解加反射消除重复代码.优化.annotations.BankAPIField;
import com.example.design.利用注解加反射消除重复代码.优化.annotations.BankAPI;
import lombok.Data;

import java.math.BigDecimal;


@BankAPI(url = "/bank/pay", desc = "支付接口")
@Data
public class PayAPI extends AbstractAPI {
    @BankAPIField(order = 1, type = "N", length = 20, desc = "用户id")
    private long userId;

    @BankAPIField(order = 2, type = "M", length = 10, desc = "支付金额")
    private BigDecimal amount;
}
